package com.aabte.weather.city.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(name = "micro-weather-gateway-server", path = "/micro-weather-city-server")
@RequestMapping(path = "/cities")
public interface CityApi {

    @RequestMapping(method = RequestMethod.GET, path = "")
    List<City> listCity();

}
